/**
 * 作者: hxl
 * 日期: 2024-12-10 14:41:29
 * 备注: 花店任务配置表
 */
package com.motu.monstercity.server.game.commondata.florist;

import io.vertx.core.json.JsonObject;

public class FloristTaskModel {
    protected int id; // id
    protected int taskType; // 任务类型
    protected int sort; // 顺序 (显示顺序和替换顺序)
    protected int taskPar; // 任务参数
    protected String reward; // 奖励道具
    protected int param; // 参数2
    protected int inherit; // 是否继承主线进度

    public FloristTaskModel() {
    }

    public FloristTaskModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        taskType = obj.containsKey("task_type") ? obj.getInteger("task_type") : 0;
        sort = obj.containsKey("sort") ? obj.getInteger("sort") : 0;
        taskPar = obj.containsKey("task_par") ? obj.getInteger("task_par") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        param = obj.containsKey("param") ? obj.getInteger("param") : 0;
        inherit = obj.containsKey("inherit") ? obj.getInteger("inherit") : 0;
    }

    public int getId() {
        return id;
    }

    public int getTaskType() {
        return taskType;
    }

    public int getSort() {
        return sort;
    }

    public int getTaskPar() {
        return taskPar;
    }

    public String getReward() {
        return reward;
    }

    public int getParam() {
        return param;
    }

    public int getInherit() {
        return inherit;
    }

}
